

window.onload = function () {
  var video = document.getElementsByClassName('brandVideopic2');
  var videopaly = document.getElementsByClassName('brandVideo');
  var videoclose = document.getElementsByClassName('brandVideoclose');


  for(let i=0;i<video.length;i++){

    video[i].addEventListener('click' , function () {
      alert('111');
      // videopaly[0].setAttribute('isblock')
      videopaly[i].style.setProperty('display','block')
    },false);
    videoclose[i].addEventListener('click',function () {
      videopaly[i].style.setProperty('display','none')

    },false)
  }



}
